/*
 * Flag.h
 *
 *  Created on: 10/06/2012
 *      Author: lucho0
 */

#ifndef FLAG_H_
#define FLAG_H_

#include "../WidgetMovimiento.h"

/*
 * This class is a blitable widget that represents captured bonuses and remaining lives.
 * In order to separate those kind of flags, and to discriminate if a flag is equal to other, this class has an attribute type.
 *
 * For lives the attribute type shall be "lives"
 * For misile bonus the attribute type shall be "misile"
 * etc.
*/

class Flag: public Widget {
public:
	Flag(int posX, int posY,std::string imageSurface, Widget* parent,std::string type);
	void setX(int x);
	std::string getType();
	void showOn(SDL_Surface* surface);

	virtual ~Flag();
private:
	std::string type;
};

#endif /* FLAG_H_ */
